adblock-fast: bugfix: dl command
authorStan Grishin <[email protected]>
Tue, 16 Sep 2025 00:32:49 +0000 (00:32 +0000)
committerStan Grishin <[email protected]>
Wed, 17 Sep 2025 22:06:08 +0000 (15:06 -0700)
* only test gzip existence and reset action/param on boot

Signed-off-by: Stan Grishin <[email protected]>
net/adblock-fast/Makefile
net/adblock-fast/files/etc/init.d/adblock-fast

index e8ee16b8f4e4fe6949317a80bd2b91528a3ebf0c..2236aac4b5e4d7d297c2897bee79ef54e5782193 100644 (file)
@@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=adblock-fast
 PKG_VERSION:=1.1.4
-PKG_RELEASE:=12
+PKG_RELEASE:=14
 PKG_MAINTAINER:=Stan Grishin <[email protected]>
 PKG_LICENSE:=AGPL-3.0-or-later
 
index 6a3ddc502990726188bb3223516a18d4be61de96..179579bf830a0adc28e9db57f3e5086d928c399f 100755 (executable)
@@ -2167,9 +2167,15 @@ adb_start() {
        local param="$1" validation_result="$3"
 
        dns_set_output_values "$dns"
-       adb_file test_gzip && unset adbf_boot_flag && param='on_start'
-
-       [ -n "$adbf_boot_flag" ] && return 0
+       if [ "$action" = 'on_boot' ] || [ -n "$adbf_boot_flag" ]; then
+               if adb_file test_gzip; then
+                       unset adbf_boot_flag
+                       action='on_start'
+                       param='on_start'
+               else
+                       return 0
+               fi
+       fi
        load_environment "$validation_result" "$param" || return 1
 
        status="$(json get status)"